package cn.hiapi.shopkeeper.jpa.activity;

import cn.hiapi.basic.jpa.BasicRepository;
import cn.hiapi.shopkeeper.entity.activity.ActivityLotteryItem;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * @author AdinZ
 * @date 2022/12/13 0:32
 */
public interface ActivityLotteryItemJpa extends BasicRepository<ActivityLotteryItem, Long> {

    @Modifying
    @Query("delete  from ActivityLotteryItem e where e.aid=?1")
    Integer deleteByAid(long aid);


}
